import VueRouter from 'vue-router'
import {
	Login,
	ShopCart,
	Home,
}
from './pages'


const routes = [{
		path: '/',
		component: Login
	}, {
		path: '/cart',
		component: ShopCart
	},
	{
		path:'/home',
		component:Home
	}
]
	// 3. 创建 router 实例，然后传 `routes` 配置
	// 你还可以传别的配置参数，不过先这么简单着吧。
export default new VueRouter({
	mode: 'history',
	routes: routes // （缩写）相当于 routes: routes
})
